package com.zzld.modules.maintenance.service.impl;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zzld.core.service.BaseServiceImpl;
import com.zzld.modules.maintenance.entity.Matnproduct;
import com.zzld.modules.maintenance.mapper.MatnproductMapper;
import com.zzld.modules.maintenance.service.IMatnproductService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MatnproductServiceImpl extends BaseServiceImpl<Matnproduct> implements IMatnproductService {
    @Autowired
    private MatnproductMapper matnproductMapper;

    private static final Logger logger = LoggerFactory.getLogger(MatnproductServiceImpl.class);

	@Override
	public PageInfo selectbypage(Map<String, Object> map, Integer PageNum,
			Integer PageSize) {
		// TODO 自动生成的方法存根
		PageHelper.startPage(PageNum, PageSize);
		List<Matnproduct> list = matnproductMapper.selectbypage(map);
		PageInfo page = new PageInfo(list);

		return page;
		
	}
}